package com.ruoyi.web.controller.sjq;

import com.ruoyi.biz.domain.BizWeekRecommend;
import com.ruoyi.biz.service.IBizWeekRecommendService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.system.service.ISysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * 首页 业务处理
 * 
 * @author ruoyi
 */
@Controller
@RequestMapping("/sjq")
public class HomeIndexController extends BaseController
{
    @Autowired
    private ISysMenuService menuService;
    @Autowired
    private IBizWeekRecommendService recommendService;

    // 系统首页
    @GetMapping("/index")
    public String index(ModelMap mmap)
    {
        BizWeekRecommend bizWeekRecommend = new BizWeekRecommend();
        List<BizWeekRecommend> recommends = recommendService.selectBizWeekRecommendList(bizWeekRecommend);
        mmap.put("weekRecommends", recommends);
        return "4jq/index";
    }

    /**
     * 本周热卖(本周推荐)  15条
     * @return
     */
    private List<Product> getWeekHot(){
        return null;
    }

}
